c# Unit Test IDbContextFactory

57

c# Unit Test IDbContextFactory -

mockDbFactory.Setup(f => f.CreateDbContext())
    .Returns(() => new SomeDbContext(new DbContextOptionsBuilder<SomeDbContext>()
        .UseInMemoryDatabase("InMemoryTest")
        .Options));

Comments

Submit
0 Comments